home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Encarta World Atlas 1999 / Encarta World 99 Install Disk.iso / evg / Flights / SoundsSA.js < prev   
Encoding:
JavaScript  |  1998-09-01  |  8.2 KB  |  182 lines

  1. /*****************************************************************************
  2.  SoundsSA.js
  3.  
  4.  Encarta Virtual Globe 1999
  5.  
  6.  (c) Copyright Microsoft Corporation 1998
  7.  
  8.  Populates the sound table for South America. The sound table is comprised
  9.  of a Lat,Long location where the sound is associated with, and an index
  10.  number into the Audio Man control which has the path to the actual sound 
  11.  file. See FlightSounds.xls for the table of sound file and Lat,Long 
  12.  matchings.
  13.  
  14.  Also includes fusion related variables declarations and functions
  15.  because the number of fusion nodes vary between Fly files.
  16.  
  17.  This file is to be included by FlySAm.htm
  18.  
  19.  Owner = WHsu
  20. *****************************************************************************/
  21. var g_numFusionSrcNodes = 19;
  22. var g_FusionSrcNodes = new Array(g_numFusionSrcNodes);            // node object for Fusion URLWav
  23. var g_fFusionSrcNodeLoaded = new Array(g_numFusionSrcNodes);    // if set, node loaded
  24.  
  25. function LoadFusionMedia()
  26. {
  27.     var i;
  28.     for ( i=0; i < g_numFusionSrcNodes; i++ )
  29.     {
  30.         g_fFusionSrcNodeLoaded[i] = false;
  31.     }
  32.     g_FusionSrcNodes[0]  = MediaGraph.Nodes("FusionSrcA");
  33.     g_FusionSrcNodes[1]  = MediaGraph.Nodes("FusionSrcB");
  34.     g_FusionSrcNodes[2]  = MediaGraph.Nodes("FusionSrcC");
  35.     g_FusionSrcNodes[3]  = MediaGraph.Nodes("FusionSrcD");
  36.     g_FusionSrcNodes[4]  = MediaGraph.Nodes("FusionSrcE");
  37.     g_FusionSrcNodes[5]  = MediaGraph.Nodes("FusionSrcF");
  38.     g_FusionSrcNodes[6]  = MediaGraph.Nodes("FusionSrcG");
  39.     g_FusionSrcNodes[7]  = MediaGraph.Nodes("FusionSrcH");
  40.     g_FusionSrcNodes[8]  = MediaGraph.Nodes("FusionSrcI");
  41.     g_FusionSrcNodes[9]  = MediaGraph.Nodes("FusionSrcJ");
  42.     g_FusionSrcNodes[10] = MediaGraph.Nodes("FusionSrcK");
  43.     g_FusionSrcNodes[11] = MediaGraph.Nodes("FusionSrcL");
  44.     g_FusionSrcNodes[12] = MediaGraph.Nodes("FusionSrcM");
  45.     g_FusionSrcNodes[13] = MediaGraph.Nodes("FusionSrcN");
  46.     g_FusionSrcNodes[14] = MediaGraph.Nodes("FusionSrcO");
  47.     g_FusionSrcNodes[15] = MediaGraph.Nodes("FusionSrcP");
  48.     g_FusionSrcNodes[16] = MediaGraph.Nodes("FusionSrcQ");
  49.     g_FusionSrcNodes[17] = MediaGraph.Nodes("FusionSrcR");
  50.     g_FusionSrcNodes[18] = MediaGraph.Nodes("FusionSrcS");
  51.  
  52.     MediaGraph.Nodes("FusionSrcA").LoadMedia(false);
  53.     MediaGraph.Nodes("FusionSrcB").LoadMedia(false);
  54.     MediaGraph.Nodes("FusionSrcC").LoadMedia(false);
  55.     MediaGraph.Nodes("FusionSrcD").LoadMedia(false);
  56.     MediaGraph.Nodes("FusionSrcE").LoadMedia(false);
  57.     MediaGraph.Nodes("FusionSrcF").LoadMedia(false);
  58.     MediaGraph.Nodes("FusionSrcG").LoadMedia(false);
  59.     MediaGraph.Nodes("FusionSrcH").LoadMedia(false);
  60.     MediaGraph.Nodes("FusionSrcI").LoadMedia(false);
  61.     MediaGraph.Nodes("FusionSrcJ").LoadMedia(false);
  62.     MediaGraph.Nodes("FusionSrcK").LoadMedia(false);
  63.     MediaGraph.Nodes("FusionSrcL").LoadMedia(false);
  64.     MediaGraph.Nodes("FusionSrcM").LoadMedia(false);
  65.     MediaGraph.Nodes("FusionSrcN").LoadMedia(false);
  66.     MediaGraph.Nodes("FusionSrcO").LoadMedia(false);
  67.     MediaGraph.Nodes("FusionSrcP").LoadMedia(false);
  68.     MediaGraph.Nodes("FusionSrcQ").LoadMedia(false);
  69.     MediaGraph.Nodes("FusionSrcR").LoadMedia(false);
  70.     MediaGraph.Nodes("FusionSrcS").LoadMedia(false);
  71. }
  72.  
  73. g_SoundTable[g_Continent_SA] = new Array(21);
  74.  
  75. g_SoundTable[g_Continent_SA][0] = new Array(3);
  76. g_SoundTable[g_Continent_SA][1] = new Array(3);
  77. g_SoundTable[g_Continent_SA][2] = new Array(3);
  78. g_SoundTable[g_Continent_SA][3] = new Array(3);
  79. g_SoundTable[g_Continent_SA][4] = new Array(3);
  80. g_SoundTable[g_Continent_SA][5] = new Array(3);
  81. g_SoundTable[g_Continent_SA][6] = new Array(3);
  82. g_SoundTable[g_Continent_SA][7] = new Array(3);
  83. g_SoundTable[g_Continent_SA][8] = new Array(3);
  84. g_SoundTable[g_Continent_SA][9] = new Array(3);
  85. g_SoundTable[g_Continent_SA][10] = new Array(3);
  86. g_SoundTable[g_Continent_SA][11] = new Array(3);
  87. g_SoundTable[g_Continent_SA][12] = new Array(3);
  88. g_SoundTable[g_Continent_SA][13] = new Array(3);
  89. g_SoundTable[g_Continent_SA][14] = new Array(3);
  90. g_SoundTable[g_Continent_SA][15] = new Array(3);
  91. g_SoundTable[g_Continent_SA][16] = new Array(3);
  92. g_SoundTable[g_Continent_SA][17] = new Array(3);
  93. g_SoundTable[g_Continent_SA][18] = new Array(3);
  94. g_SoundTable[g_Continent_SA][19] = new Array(3);
  95. g_SoundTable[g_Continent_SA][20] = new Array(3);
  96.  
  97.  
  98. g_SoundTable[g_Continent_SA][0][g_indexLat] = -33;
  99. g_SoundTable[g_Continent_SA][0][g_indexLong] = -65;
  100. g_SoundTable[g_Continent_SA][0][g_indexSound] = 1;        // F172383A    -33    -65    172383 Argentina
  101.  
  102. g_SoundTable[g_Continent_SA][1][g_indexLat] = -33;
  103. g_SoundTable[g_Continent_SA][1][g_indexLong] = -65;
  104. g_SoundTable[g_Continent_SA][1][g_indexSound] = 2;        // F172384A    -33    -65    172384 Argentina
  105.  
  106. g_SoundTable[g_Continent_SA][2][g_indexLat] = -33;
  107. g_SoundTable[g_Continent_SA][2][g_indexLong] = -65;
  108. g_SoundTable[g_Continent_SA][2][g_indexSound] = 3;        // F172386A    -33    -65    172386 Argentina
  109.  
  110. g_SoundTable[g_Continent_SA][3][g_indexLat] = -15;
  111. g_SoundTable[g_Continent_SA][3][g_indexLong] = -65;
  112. g_SoundTable[g_Continent_SA][3][g_indexSound] = 4;        // F172400A    -15    -65    172400 Bolivia
  113.  
  114. g_SoundTable[g_Continent_SA][4][g_indexLat] = -5;
  115. g_SoundTable[g_Continent_SA][4][g_indexLong] = -8;
  116. g_SoundTable[g_Continent_SA][4][g_indexSound] = 5;        // F172404A    -5    -8    172404 Brazil (Candomble)
  117.  
  118. g_SoundTable[g_Continent_SA][5][g_indexLat] = -5;
  119. g_SoundTable[g_Continent_SA][5][g_indexLong] = -8;
  120. g_SoundTable[g_Continent_SA][5][g_indexSound] = 6;        // F172405A    -5    -8    172405 Brazil (samba)
  121.  
  122. g_SoundTable[g_Continent_SA][6][g_indexLat] = -35;
  123. g_SoundTable[g_Continent_SA][6][g_indexLong] = -72;
  124. g_SoundTable[g_Continent_SA][6][g_indexSound] = 7;        // F172422A    -35    -72    172422 Chile
  125.  
  126. g_SoundTable[g_Continent_SA][7][g_indexLat] = 5;
  127. g_SoundTable[g_Continent_SA][7][g_indexLong] = -74;
  128. g_SoundTable[g_Continent_SA][7][g_indexSound] = 8;        // F172426A    5    -74    172426 Colombia (+)
  129.  
  130. g_SoundTable[g_Continent_SA][8][g_indexLat] = 5;
  131. g_SoundTable[g_Continent_SA][8][g_indexLong] = -74;
  132. g_SoundTable[g_Continent_SA][8][g_indexSound] = 9;        // F172427A    5    -74    172427 Colombia (+)
  133.  
  134. g_SoundTable[g_Continent_SA][9][g_indexLat] = 5;
  135. g_SoundTable[g_Continent_SA][9][g_indexLong] = -74;
  136. g_SoundTable[g_Continent_SA][9][g_indexSound] = 10;        // F172428A    5    -74    172428 Colombia (+)
  137.  
  138. g_SoundTable[g_Continent_SA][10][g_indexLat] = 2;
  139. g_SoundTable[g_Continent_SA][10][g_indexLong] = -55;
  140. g_SoundTable[g_Continent_SA][10][g_indexSound] = 11;        // F172446A    2    -55    172446 French Guiana
  141.  
  142. g_SoundTable[g_Continent_SA][11][g_indexLat] = 2;
  143. g_SoundTable[g_Continent_SA][11][g_indexLong] = -55;
  144. g_SoundTable[g_Continent_SA][11][g_indexSound] = 12;        // F172447A    2    -55    172447 French Guiana-
  145.  
  146. g_SoundTable[g_Continent_SA][12][g_indexLat] = -8;
  147. g_SoundTable[g_Continent_SA][12][g_indexLong] = -75;
  148. g_SoundTable[g_Continent_SA][12][g_indexSound] = 13;        // F172537A    -8    -75    172537 Peru
  149.  
  150. g_SoundTable[g_Continent_SA][13][g_indexLat] = 6;
  151. g_SoundTable[g_Continent_SA][13][g_indexLong] = -65;
  152. g_SoundTable[g_Continent_SA][13][g_indexSound] = 14;        // F172604A    6    -65    172604 Venezuela- (+)
  153.  
  154. g_SoundTable[g_Continent_SA][14][g_indexLat] = 6;
  155. g_SoundTable[g_Continent_SA][14][g_indexLong] = -65;
  156. g_SoundTable[g_Continent_SA][14][g_indexSound] = 15;        // F172976A    6    -65    172976 Venezuela (+)
  157.  
  158. g_SoundTable[g_Continent_SA][15][g_indexLat] = -35;
  159. g_SoundTable[g_Continent_SA][15][g_indexLong] = -72;
  160. g_SoundTable[g_Continent_SA][15][g_indexSound] = 16;        // F173218A    -35    -72    173218 Chile
  161.  
  162. g_SoundTable[g_Continent_SA][16][g_indexLat] = 12;
  163. g_SoundTable[g_Continent_SA][16][g_indexLong] = -86;
  164. g_SoundTable[g_Continent_SA][16][g_indexSound] = 17;        // F173219A    12    -86    173219 Nicaragua (+)
  165.  
  166. g_SoundTable[g_Continent_SA][17][g_indexLat] = -32;
  167. g_SoundTable[g_Continent_SA][17][g_indexLong] = -57;
  168. g_SoundTable[g_Continent_SA][17][g_indexSound] = 18;        // F173222A    -32    -57    173222 Uruguay
  169.  
  170. g_SoundTable[g_Continent_SA][18][g_indexLat] = -2;
  171. g_SoundTable[g_Continent_SA][18][g_indexLong] = -78;
  172. g_SoundTable[g_Continent_SA][18][g_indexSound] = 19;        // F173230A    -2    -78    173230 Ecuador
  173.  
  174. g_SoundTable[g_Continent_SA][19][g_indexLat] = -2;
  175. g_SoundTable[g_Continent_SA][19][g_indexLong] = -78;
  176. g_SoundTable[g_Continent_SA][19][g_indexSound] = 20;        // F173231A    -2    -78    173231 Ecuador
  177.  
  178. g_SoundTable[g_Continent_SA][20][g_indexLat] = -23;
  179. g_SoundTable[g_Continent_SA][20][g_indexLong] = -58;
  180. g_SoundTable[g_Continent_SA][20][g_indexSound] = 21;        // F173232A    -23    -58    173232 Paraguay
  181.  
  182.